﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.RangeInt
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

#nullable disable
namespace UnityEngine
{
  /// <summary>
  ///   <para>Describes an integer range.</para>
  /// </summary>
  /// <summary>
  ///   <para>Constructs a new RangeInt with given start, length values.</para>
  /// </summary>
  /// <param name="start">The starting index of the range.</param>
  /// <param name="length">The length of the range.</param>
  public struct RangeInt(int start, int length)
  {
    /// <summary>
    ///   <para>The starting index of the range, where 0 is the first position, 1 is the second, 2 is the third, and so on.</para>
    /// </summary>
    public int start = start;
    /// <summary>
    ///   <para>The length of the range.</para>
    /// </summary>
    public int length = length;

    /// <summary>
    ///   <para>The end index of the range (not inclusive).</para>
    /// </summary>
    public int end => this.start + this.length;
  }
}
